package com.myapp.user;

import com.myapp.data.config.build.interfaces.IInitBean;
import com.myapp.data.define.BaseBean;

public class UserBean extends BaseBean implements IInitBean {
	// 用户id
	private long id;

	// 用户名
	private String name;

	// 用户状态，默认是未授权
	private Status status = Status.UNAUTHORIZE;

	// 角色,默认是大众
	private Role role = Role.COMMON;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	@Override
	public void initBean(String[] data) {
	}

	@Override
	public byte[] serialization() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public <T> T unSerialization(byte[] data) {
		// TODO Auto-generated method stub
		return null;
	}

}
